SpreadsheetGear 2017
CreatePrintDocument(ICollection<IPrintable>) Method






SpreadsheetGear.Windows.Forms Namespace > CommandPrint Class > CreatePrintDocument Method : CreatePrintDocument(ICollection<IPrintable>) Method
Specifies a list of printable objects.
Creates an instance of the default print document.
Syntax
'Declaration
 
Protected Overloads Overridable Function CreatePrintDocument( _
   ByVal printables As System.Collections.Generic.ICollection(Of IPrintable) _
) As System.Drawing.Printing.PrintDocument
'Usage
 
Dim instance As CommandPrint
Dim printables As System.Collections.Generic.ICollection(Of IPrintable)
Dim value As System.Drawing.Printing.PrintDocument
 
value = instance.CreatePrintDocument(printables)
protected virtual System.Drawing.Printing.PrintDocument CreatePrintDocument( 
   System.Collections.Generic.ICollection<IPrintable> printables
)
protected function CreatePrintDocument( 
    printables: System.Collections.Generic.ICollection
): System.Drawing.Printing.PrintDocument; virtual; 
protected function CreatePrintDocument( 
   printables : System.Collections.Generic.ICollection
) : System.Drawing.Printing.PrintDocument;
protected: virtual System.Drawing.Printing.PrintDocument* CreatePrintDocument( 
   System.Collections.Generic.ICollection<IPrintable*>* printables
) 
protected:
virtual System.Drawing.Printing.PrintDocument^ CreatePrintDocument( 
   System.Collections.Generic.ICollection<IPrintable^>^ printables
) 

Parameters

printables
Specifies a list of printable objects.
Remarks
Override this method to provide a custom print document.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandPrint Class
CommandPrint Members
Overload List